# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Gabriel Martinez < reitaka at gmail dot com >

pkgname=libplist
pkgver=2.3.0
pkgrel=2
pkgdesc='Library to handle Apple Property List files'
arch=('loong64' 'x86_64')
url='https://libimobiledevice.org/'
license=('LGPL2.1')
depends=('gcc-libs' 'glibc')
optdepends=('python: Python bindings')
makedepends=('cython' 'python')
source=("https://github.com/libimobiledevice/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2")
sha256sums=('4e8580d3f39d3dfa13cefab1a13f39ea85c4b0202e9305c5c8f63818182cac61')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {    
  cd $pkgname-$pkgver
  make check  
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
